export default {
    namespaced: true,
    state() {
        return {
            // 当前播放歌曲id
            playSongId: '',
            songInfo: '',
            playStatus: false,
            // 存储歌曲url
            songDetails: '',
            // 存储当前音乐信息
            audioInfo: [],
            // 存储当前音乐歌词
            lyric: ''
        }
    },
    mutations: {
        SET_PLAY_SONG_ID(state, payload) {
            state.playSongId = payload;
        },
        SET_SONG_INFO(state, payload) {
            state.songInfo = payload;
        },
        SET_PLAY_STATUS(state, payload) {
            state.playStatus = payload;
        },
        SET_PLAY_DETAILS(state, payload) {
            state.songDetails = payload;
        },
        SET_AUDIO_INFO(state, payload) {
            state.audioInfo = payload
        },
        SET_LYRIC(state, payload) {
            state.lyric = payload
        }
    },


}